package quartzDemo;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import utils.DateUtils;
import utils.ThreadUtils;

public class QuartzJob implements Job {

    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("piu~piu~,I am executing at "+ DateUtils.formatDate("yyyy-MM-dd HH:mm:ss"));
        ThreadUtils.sleep(2000);
    }

}
